<?php
class PpsApi extends MY_Controller
{
	public function getRole() {
		try {
			ini_set('default_socket_timeout', -1);
			$data = '100';
			$redis = new Redis();
			$redis->connect('127.0.0.1', 6379);
			$redis->auth("redispassword");
			//$redis->rPush("call_log", $data);
			$re = $redis->lPop("call_log");
			$redis->close();

		}

		catch(Exception $e) {
			echo $e->getCode();
			echo $e->getMessage();
		}
	}
}
